/*
 * Copyright (C) 2011 The Code Bakers
 * Authors: Cleuton Sampaio e Francisco Rodrigues
 * e-mail: thecodebakers@gmail.com
 * Project: http://code.google.com/p/layout-exercise/
 * Site: http://thecodebakers.blogspot.com
 *
 * Licensed under the GNU GPL, Version 3.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://gplv3.fsf.org/
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * @author Cleuton Sampaio e Francisco Rogrigues - thecodebakers@gmail.com
 */

package br.com.thecodebakers.layouts;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Principal extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
    
    public void clicouLinear(View view) {
    	Intent i = new Intent (this.getApplicationContext(), LinearDemo.class);
    	this.startActivity(i);
    }

    public void clicouTable(View view) {
    	Intent i = new Intent (this.getApplicationContext(), TableDemo.class);
    	this.startActivity(i);
    }

    public void clicouRelative(View view) {
    	Intent i = new Intent (this.getApplicationContext(), RelativeDemo.class);
    	this.startActivity(i);
    }

    public void clicouWithImages(View view) {
    	Intent i = new Intent (this.getApplicationContext(), WIthImages.class);
    	this.startActivity(i);
    }

    public void clicouDont01(View view) {
    	Intent i = new Intent (this.getApplicationContext(), DontDoIt01.class);
    	this.startActivity(i);
    }
    
    public void clicouDont02(View view) {
    	Intent i = new Intent (this.getApplicationContext(), DontDoIt02.class);
    	this.startActivity(i);
    }
    
    public void clicouLista(View view) {
    	Intent i = new Intent (this.getApplicationContext(), ListaComBarra.class);
    	this.startActivity(i);
    }
}